package com.corpgovernment.common.base;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
public class Page<T> {
    private Integer pageNum = 1;
    private Integer pageSize = 20;
    private Integer totalPage ;
    private Long count;
    private List<T> list;

    public Page() {
    }

    public Page(Integer pageNum, Integer pageSize, Integer totalPage, Long count, List list) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.totalPage = totalPage;
        this.count = count;
        this.list = list;
    }
}
